DooPHP Diagnostics - Trying to get property of non-object DooPHPTrying to get property of non-object
See file /home/voicetop/public_html/protected/viewc/principalAyuda.php
+ Error on line 30
<h1 class='titulo'><?= $data['categoria']->nombre ?></h1>
<style>
.titulo{
font-family: 'Montserrat', sans-serif;
}
.list-group-item:hover{
border: 1px solid #428bca;
}
a, a:focus, a:hover, a:active {
text-decoration: none;
outline: 0 none;
font-family: 'Montserrat', sans-serif;
cursor:pointer;
}
</style>
<div class="bg_tarifas" style="background-repeat: no-repeat; background-size:cover; z-index: 0; min-height: 450px; background-image: url(<?php echo $data['rootUrl']; ?>fondo_pages/<?php echo($data['page']->foto) ?>); background-position: center; width: 100%;position: relative;">
<div class="container-fluid content-tarifas" style="color: #fff;">
<div class="row">
<div class="col-lg-5 col-md-8 col-sm-8 description-tarifas" style="font-family: r12title; text-align: left; padding-left: 3%; margin-top: 20%;">
</div>
</div>
</div>
</div>
<div id="content" style=''>
<div class="container">
<div class="col-md-12">
<br> <br>
<div class="row">
</div> <br> <br>
<div class="col-md-5">
<ul class="list-group">
<?php foreach ($data["respuestas"] as $rps) { ?>
<a data-id='<?php echo $rps["id"]; ?>' class='item' >
<li class="list-group-item"><?php echo $rps["title"]; ?></li>
</a>
<?php } ?>
</ul>
</div>
<div class="col-md-7 content" >
</div>
</div>
</div>
</div>
<script>
$(".item").click(function(){
var id=$(this).attr("data-id")
$.post('<?php echo $data['rootUrl']; ?>respuesta2', {id: id, idioma: '<?php echo ($data['idioma'] == 'spanish.php' ? 'es' : 'en'); ?>'}, function(data) {
$('.content').html(data);
});
})
</script>
* Stack Trace...
- /home/voicetop/public_html/index.php(27) calling run()
- /home/voicetop/public_html/dooframework/app/DooWebApp.php(34) calling routeTo()
- /home/voicetop/public_html/dooframework/app/DooWebApp.php(116) calling RespuestasAyuda()
- /home/voicetop/public_html/protected/controller/MainController.php(746) calling renderc()
- /home/voicetop/public_html/dooframework/controller/DooController.php(231) calling renderc()
- /home/voicetop/public_html/dooframework/view/DooView.php(199) calling include()
- /home/voicetop/public_html/protected/viewc/home.php(77) calling include()
* Variables... Conf . GET . POST . Session . Cookie
object(DooConfig)#1 (34) {
["AUTOLOAD"] => NULL
["SITE_PATH"] => string(27) "/home/voicetop/public_html/"
["PROTECTED_FOLDER"] => string(10) "protected/"
["BASE_PATH"] => string(40) "/home/voicetop/public_html/dooframework/"
["LOG_PATH"] => NULL
["APP_URL"] => string(29) "https://www.voicetophone.com/"
["SUBFOLDER"] => string(1) "/"
["APP_MODE"] => string(3) "dev"
["AUTOROUTE"] => bool(true)
["DEBUG_ENABLED"] => bool(true)
["ERROR_404_DOCUMENT"] => NULL
["ERROR_404_ROUTE"] => string(6) "/error"
["CACHE_PATH"] => NULL
["AUTO_VIEW_RENDER_PATH"] => string(17) "/help/:id/:idioma"
["MEMCACHE"] => NULL
["TEMPLATE_ENGINE"] => string(7) "DooView"
["TEMPLATE_SHOW_COMMENT"] => NULL
["TEMPLATE_ALLOW_PHP"] => NULL
["TEMPLATE_COMPILE_ALWAYS"] => NULL
["TEMPLATE_GLOBAL_TAGS"] => array(9) {
[0] => string(5) "upper"
[1] => string(7) "tofloat"
[2] => string(16) "sample_with_args"
[3] => string(5) "debug"
[4] => string(3) "url"
[5] => string(4) "url2"
[6] => string(13) "function_deny"
[7] => string(5) "isset"
[8] => string(5) "empty"
}
["MODULES"] => NULL
["APP_NAMESPACE_ID"] => NULL
["RELATIVE_IMG_DIR"] => string(13) "/uploads/img/"
["IMG_DIR"] => string(35) "/home/voicetop/public_html/uploads/"
["FILE_DIR"] => string(34) "/home/voicetop/public_html//files/"
["PRODU_DIR"] => string(38) "/home/voicetop/public_html//productos/"
["IMG_CATEGORIA"] => string(43) "/home/voicetop/public_html//img_categorias/"
["IMG_AYUDA"] => string(41) "/home/voicetop/public_html//iconos_ayuda/"
["PROY_DIR"] => string(38) "/home/voicetop/public_html//proyectos/"
["GALERIA_CARACT"] => string(47) "/home/voicetop/public_html//img_caract/galeria/"
["FONDO_PAGES"] => string(40) "/home/voicetop/public_html//fondo_pages/"
["GALERIA_PROYECTO_WEB"] => string(21) "//img_caract/galeria/"
["DIR_NOW"] => string(29) "www.voicetophone.com/help/13/"
["PARAM"] => string(0) ""
}
$_SESSION Variables
array(0) {
}
$_COOKIE Variables
array(0) {
}
Trying to get property of non-object
See file /home/voicetop/public_html/protected/viewc/principalAyuda.php
+ Error on line 30
<h1 class='titulo'><?= $data['categoria']->nombre ?></h1>
<h1 class='titulo'><?= $data['categoria']->nombre ?></h1>
<style>
.titulo{
font-family: 'Montserrat', sans-serif;
}
.list-group-item:hover{
border: 1px solid #428bca;
}
a, a:focus, a:hover, a:active {
text-decoration: none;
outline: 0 none;
font-family: 'Montserrat', sans-serif;
cursor:pointer;
}
</style>
<div class="bg_tarifas" style="background-repeat: no-repeat; background-size:cover; z-index: 0; min-height: 450px; background-image: url(<?php echo $data['rootUrl']; ?>fondo_pages/<?php echo($data['page']->foto) ?>); background-position: center; width: 100%;position: relative;">
<div class="container-fluid content-tarifas" style="color: #fff;">
<div class="row">
<div class="col-lg-5 col-md-8 col-sm-8 description-tarifas" style="font-family: r12title; text-align: left; padding-left: 3%; margin-top: 20%;">
</div>
</div>
</div>
</div>
<div id="content" style=''>
<div class="container">
<div class="col-md-12">
<br> <br>
<div class="row">
</div> <br> <br>
<div class="col-md-5">
<ul class="list-group">
<?php foreach ($data["respuestas"] as $rps) { ?>
<a data-id='<?php echo $rps["id"]; ?>' class='item' >
<li class="list-group-item"><?php echo $rps["title"]; ?></li>
</a>
<?php } ?>
</ul>
</div>
<div class="col-md-7 content" >
</div>
</div>
</div>
</div>
<script>
$(".item").click(function(){
var id=$(this).attr("data-id")
$.post('<?php echo $data['rootUrl']; ?>respuesta2', {id: id, idioma: '<?php echo ($data['idioma'] == 'spanish.php' ? 'es' : 'en'); ?>'}, function(data) {
$('.content').html(data);
});
})
</script>
* Stack Trace...
- /home/voicetop/public_html/index.php(27) calling run()
- /home/voicetop/public_html/dooframework/app/DooWebApp.php(34) calling routeTo()
- /home/voicetop/public_html/dooframework/app/DooWebApp.php(116) calling RespuestasAyuda()
- /home/voicetop/public_html/protected/controller/MainController.php(746) calling renderc()
- /home/voicetop/public_html/dooframework/controller/DooController.php(231) calling renderc()
- /home/voicetop/public_html/dooframework/view/DooView.php(199) calling include()
- /home/voicetop/public_html/protected/viewc/home.php(77) calling include()
* Variables... Conf . GET . POST . Session . Cookie
object(DooConfig)#1 (34) {
["AUTOLOAD"] => NULL
["SITE_PATH"] => string(27) "/home/voicetop/public_html/"
["PROTECTED_FOLDER"] => string(10) "protected/"
["BASE_PATH"] => string(40) "/home/voicetop/public_html/dooframework/"
["LOG_PATH"] => NULL
["APP_URL"] => string(29) "https://www.voicetophone.com/"
["SUBFOLDER"] => string(1) "/"
["APP_MODE"] => string(3) "dev"
["AUTOROUTE"] => bool(true)
["DEBUG_ENABLED"] => bool(true)
["ERROR_404_DOCUMENT"] => NULL
["ERROR_404_ROUTE"] => string(6) "/error"
["CACHE_PATH"] => NULL
["AUTO_VIEW_RENDER_PATH"] => string(17) "/help/:id/:idioma"
["MEMCACHE"] => NULL
["TEMPLATE_ENGINE"] => string(7) "DooView"
["TEMPLATE_SHOW_COMMENT"] => NULL
["TEMPLATE_ALLOW_PHP"] => NULL
["TEMPLATE_COMPILE_ALWAYS"] => NULL
["TEMPLATE_GLOBAL_TAGS"] => array(9) {
[0] => string(5) "upper"
[1] => string(7) "tofloat"
[2] => string(16) "sample_with_args"
[3] => string(5) "debug"
[4] => string(3) "url"
[5] => string(4) "url2"
[6] => string(13) "function_deny"
[7] => string(5) "isset"
[8] => string(5) "empty"
}
["MODULES"] => NULL
["APP_NAMESPACE_ID"] => NULL
["RELATIVE_IMG_DIR"] => string(13) "/uploads/img/"
["IMG_DIR"] => string(35) "/home/voicetop/public_html/uploads/"
["FILE_DIR"] => string(34) "/home/voicetop/public_html//files/"
["PRODU_DIR"] => string(38) "/home/voicetop/public_html//productos/"
["IMG_CATEGORIA"] => string(43) "/home/voicetop/public_html//img_categorias/"
["IMG_AYUDA"] => string(41) "/home/voicetop/public_html//iconos_ayuda/"
["PROY_DIR"] => string(38) "/home/voicetop/public_html//proyectos/"
["GALERIA_CARACT"] => string(47) "/home/voicetop/public_html//img_caract/galeria/"
["FONDO_PAGES"] => string(40) "/home/voicetop/public_html//fondo_pages/"
["GALERIA_PROYECTO_WEB"] => string(21) "//img_caract/galeria/"
["DIR_NOW"] => string(29) "www.voicetophone.com/help/13/"
["PARAM"] => string(0) ""
}
$_SESSION Variables array(0) {
}
$_COOKIE Variables array(0) {
}