Phalcon

Exception: Serialization of 'Closure' is not allowed hybridauth linkedin

Hybridauth Linkedin not working phalcon

Steps to fix  it 

1. Navigate to the libraries folder

2. hybridauth/Hybrid/thirdparty/LinkedIn/LinkedIn.php

3. At line 126 change to 
const _URL_REQUEST                 = 'https://api.linkedin.com/uas/oauth/requestToken?scope=r_basicprofile+r_emailaddress+rw_nus';

const _URL_REQUEST                 = 'https://api.linkedin.com/uas/oauth/requestToken?scope=r_basicprofile+r_emailaddress+w_share'; 

That is it.

Still problem

Cascading Views Folders

Cascade Views folders in phalcon 3, Views Cascading is to handle with multiple views folder, and then we say to phalcon that " when you don't find templates files in first folder then look into to the next folder". to do this we have to extend phalcon view class

let see the steps to cascade views,

 

Created this file in custom/CustomView.php

 

Use partials views templates for ajax calls in controller action as response in phalcon

This will be helpful for someone who is willing to create ajax calls by controller action and use partial template instead of default action view template.

Example Say you would have  controller action that will have one view template. now here by using the same  view template   you are going to use it for some other controller action as a partial.

Point is you are going to use one controller action view template for multiple controller actions as  partials.