gajendrakrjain.wordpress.com
Php Help 24X7 | Page 2
https://gajendrakrjain.wordpress.com/page/2
October 21, 2014. Calling block controller action from add/edit.php. 1 Make a folder named “tool” inside your package directory. 2 Make a file say demo.php and put the code in it, like suppose you want to fetch something from database and echo it.($db=Loader: db() will work in this file so don’t worry about the DB connection). 3 Now put this code to call that file and the code inside it. Th = Loader: helper('concrete/urls'); echo. Th- getToolsURL('demo', 'my package name') ;. October 20, 2014. Step1: You...
gajendrakrjain.wordpress.com
14 | November | 2014 | Php Help 24X7
https://gajendrakrjain.wordpress.com/2014/11/14
Daily Archives: November 14, 2014. November 14, 2014. Sort by using more than one field. ProductList- sortByMultiple(‘Featured desc’, ‘ProductName asc’);. November 14, 2014. Using pagination with custom query. 1) First of all create a model and extend DatabaseItemList class to use createQuery method, like. Loader: library(‘item list’);. Class YourList extends DatabaseItemList {. Public function construct($query) {. Loader: model(‘Yourlist’, ‘product’);. Paintings = new Yourlist($que);. November 14, 2014.
gajendrakrjain.wordpress.com
Sort by using more than one field | Php Help 24X7
https://gajendrakrjain.wordpress.com/2014/11/14/sort-by-using-more-than-one-field
November 14, 2014. Sort by using more than one field. ProductList- sortByMultiple(‘Featured desc’, ‘ProductName asc’);. Using pagination with custom query. Appending query strings to laravel pagination links →. Leave a Reply Cancel reply. Enter your comment here. Fill in your details below or click an icon to log in:. Address never made public). You are commenting using your WordPress.com account. ( Log Out. You are commenting using your Twitter account. ( Log Out. Notify me of new comments via email.
gajendrakrjain.wordpress.com
Using pagination with custom query | Php Help 24X7
https://gajendrakrjain.wordpress.com/2014/11/14/using-pagination-with-custom-query
November 14, 2014. Using pagination with custom query. 1) First of all create a model and extend DatabaseItemList class to use createQuery method, like. Loader: library(‘item list’);. Class YourList extends DatabaseItemList {. Public function construct($query) {. 2) Now in under view function of your controller write down the following code, I am assuming that you have your query in $que. Loader: model(‘Yourlist’, ‘product’);. Paintings = new Yourlist($que);. OnePageOfPaintings = $paintings- getPage();.
gajendrakrjain.wordpress.com
shiv1alok | Php Help 24X7
https://gajendrakrjain.wordpress.com/author/shiv1alok
November 18, 2014. Pagination in Laravel with custom query. 1) Put this code in your controller. Query = DB: table(‘groups’)- where(‘name’, ‘like’, ‘%’ . $keyword . ‘%’);. Aa = $query- paginate(10);. Groups = $query- get();. Pagination = $aa- appends($groups)- links();. Return View: make(‘admin: groups.index’)- with(‘groupsData’, $groups)- with(‘pagination’, $pagination);. 2) Then in view put this code. In case of blade.php. November 18, 2014. Appending query strings to laravel pagination links. 8220; &#...
gajendrakrjain.wordpress.com
Add Meta Title and Meta Decription to a block page Concrete5 | Php Help 24X7
https://gajendrakrjain.wordpress.com/2014/11/14/add-meta-title-and-meta-decription-to-a-block-page-concrete5
November 14, 2014. Add Meta Title and Meta Decription to a block page Concrete5. To make a website SEO friendly we need proper Meta title and Meta Description. We can achieve the same in Concrete5 as well, as follows:-. Step 1: Add the block page by the following code :. Ct = CollectionType: getByHandle('full'); / full / left sidebar / right sidebar / secondary $data = array('cName' = $name); / $name, name of the page like 'product' $p = $parent- add($ct, $data);. Using pagination with custom query →.
gajendrakrjain.wordpress.com
URL Rewriting problem in Cake PHP(in Ubuntu) | Php Help 24X7
https://gajendrakrjain.wordpress.com/2014/09/02/url-rewriting-problem-in-cake-phpin-ubuntu/comment-page-1
September 2, 2014. URL Rewriting problem in Cake PHP(in Ubuntu). Even after turning the mod rewrite on cakephp url rewriting might require few extra steps. Edit your .htaccess file and check if RewriteBase is present. If its present set it to your project directory path or remove the whole statement. Change the permission of the. Command then add the following if not already present. Directory /var/www/html/trunk DirectoryIndex index.php AllowOverride All Order allow,deny Allow from all /Directory. Thank...
gajendrakrjain.wordpress.com
calling block controller action from add/edit.php | Php Help 24X7
https://gajendrakrjain.wordpress.com/2014/10/21/calling-block-controller-action-from-addedit-php
October 21, 2014. Calling block controller action from add/edit.php. 1 Make a folder named “tool” inside your package directory. 2 Make a file say demo.php and put the code in it, like suppose you want to fetch something from database and echo it.($db=Loader: db() will work in this file so don’t worry about the DB connection). 3 Now put this code to call that file and the code inside it. Th = Loader: helper('concrete/urls'); echo. Th- getToolsURL('demo', 'my package name') ;. Leave a Reply Cancel reply.
gajendrakrjain.wordpress.com
gajendrakumarjain | Php Help 24X7
https://gajendrakrjain.wordpress.com/author/gajendrakumarjain
November 14, 2014. Sort by using more than one field. ProductList- sortByMultiple(‘Featured desc’, ‘ProductName asc’);. November 14, 2014. Using pagination with custom query. 1) First of all create a model and extend DatabaseItemList class to use createQuery method, like. Loader: library(‘item list’);. Class YourList extends DatabaseItemList {. Public function construct($query) {. 2) Now in under view function of your controller write down the following code, I am assuming that you have your query in $que.