Notice (8): Undefined index: Pagelayout [APP/Controller/AppController.php, line 110]Code Context$post = new Post();
$data = $post->find('first',array('conditions'=>array('Post.slug'=>$index,'Post.publish'=>1)));
$this->log($data['Pagelayout']);
$configuration = array( 'Configurations' => array( 'id' => '1', 'active' => '1', 'company' => 'IGHL', 'layout' => 'default', 'logo' => '/img/ighl-logo.png' ) ) $config = object(Configurations) { useDbConfig => 'default' useTable => 'configurations' id => false data => array() schemaName => 'webtest_wwwighl' table => 'configurations' primaryKey => 'id' validate => array() validationErrors => array() validationDomain => null tablePrefix => '' plugin => null name => 'Configurations' alias => 'Configurations' tableToModel => array( 'configurations' => 'Configurations' ) cacheQueries => false belongsTo => array() hasOne => array() hasMany => array() hasAndBelongsToMany => array() actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array() cacheSources => true findQueryType => null recursive => (int) 1 order => null virtualFields => array() __backAssociation => array() __backInnerAssociation => array() __backOriginalAssociation => array() __backContainableAssociation => array() __safeUpdateMode => false useConsistentAfterFind => true findMethods => array( 'all' => true, 'first' => true, 'count' => true, 'neighbors' => true, 'list' => true, 'threaded' => true ) [protected] _schema => array( 'id' => array( [maximum depth reached] ), 'active' => array( [maximum depth reached] ), 'company' => array( [maximum depth reached] ), 'layout' => array( [maximum depth reached] ), 'logo' => array( [maximum depth reached] ) ) [protected] _associationKeys => array( 'belongsTo' => array( [maximum depth reached] ), 'hasOne' => array( [maximum depth reached] ), 'hasMany' => array( [maximum depth reached] ), 'hasAndBelongsToMany' => array( [maximum depth reached] ) ) [protected] _associations => array( (int) 0 => 'belongsTo', (int) 1 => 'hasOne', (int) 2 => 'hasMany', (int) 3 => 'hasAndBelongsToMany' ) [protected] _insertID => null [protected] _sourceConfigured => true [protected] _eventManager => object(CakeEventManager) {} [protected] _validator => null } $index = 'gala' $post = object(Post) { displayField => 'title' actsAs => array( (int) 0 => 'Containable' ) belongsTo => array( 'Firstuser' => array( [maximum depth reached] ), 'Lastuser' => array( [maximum depth reached] ), 'Posttype' => array( [maximum depth reached] ), 'Media' => array( [maximum depth reached] ), 'Header' => array( [maximum depth reached] ), 'Gallery' => array( [maximum depth reached] ), 'Pagelayout' => array( [maximum depth reached] ) ) hasMany => array( 'Menuitem' => array( [maximum depth reached] ), 'LayoutItem' => array( [maximum depth reached] ) ) useDbConfig => 'default' useTable => 'posts' id => false data => array() schemaName => 'webtest_wwwighl' table => 'posts' primaryKey => 'id' validate => array() validationErrors => array() validationDomain => null tablePrefix => '' plugin => null name => 'Post' alias => 'Post' tableToModel => array( 'posts' => 'Post', 'users' => 'Lastuser', 'posttypes' => 'Posttype', 'media' => 'Header', 'galleries' => 'Gallery', 'pagelayouts' => 'Pagelayout', 'menuitems' => 'Menuitem', 'layout_items' => 'LayoutItem' ) cacheQueries => false hasOne => array() hasAndBelongsToMany => array() Behaviors => object(BehaviorCollection) {} whitelist => array() cacheSources => true findQueryType => null recursive => (int) 1 order => null virtualFields => array() __backAssociation => array() __backInnerAssociation => array() __backOriginalAssociation => array() __backContainableAssociation => array() __safeUpdateMode => false useConsistentAfterFind => true findMethods => array( 'all' => true, 'first' => true, 'count' => true, 'neighbors' => true, 'list' => true, 'threaded' => true ) Firstuser => object(User) {} Lastuser => object(User) {} Posttype => object(Posttype) {} Media => object(Media) {} Header => object(Media) {} Gallery => object(Gallery) {} Pagelayout => object(Pagelayout) {} Menuitem => object(Menuitem) {} LayoutItem => object(LayoutItem) {} [protected] _schema => array( 'id' => array( [maximum depth reached] ), 'date_created' => array( [maximum depth reached] ), 'date_modified' => array( [maximum depth reached] ), 'firstuser_id' => array( [maximum depth reached] ), 'lastuser_id' => array( [maximum depth reached] ), 'title' => array( [maximum depth reached] ), 'content' => array( [maximum depth reached] ), 'posttype_id' => array( [maximum depth reached] ), 'slug' => array( [maximum depth reached] ), 'image_id' => array( [maximum depth reached] ), 'desc' => array( [maximum depth reached] ), 'icon' => array( [maximum depth reached] ), 'parent_id' => array( [maximum depth reached] ), 'publish' => array( [maximum depth reached] ), 'display_image' => array( [maximum depth reached] ), 'alerttype_id' => array( [maximum depth reached] ), 'show_related' => array( [maximum depth reached] ), 'gallery_id' => array( [maximum depth reached] ), 'header_id' => array( [maximum depth reached] ), 'header_color' => array( [maximum depth reached] ), 'pagelayout_id' => array( [maximum depth reached] ) ) [protected] _associationKeys => array( 'belongsTo' => array( [maximum depth reached] ), 'hasOne' => array( [maximum depth reached] ), 'hasMany' => array( [maximum depth reached] ), 'hasAndBelongsToMany' => array( [maximum depth reached] ) ) [protected] _associations => array( (int) 0 => 'belongsTo', (int) 1 => 'hasOne', (int) 2 => 'hasMany', (int) 3 => 'hasAndBelongsToMany' ) [protected] _insertID => null [protected] _sourceConfigured => true [protected] _eventManager => object(CakeEventManager) {} [protected] _validator => null } $data = array()AppController::beforeFilter() - APP/Controller/AppController.php, line 110 PostsController::beforeFilter() - APP/Controller/PostsController.php, line 21 call_user_func - [internal], line ?? CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 243 Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 677 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 189 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167 [main] - APP/webroot/index.php, line 111
Sorry, There's nothing here yet. Please Check Back Soon!!