[Solar-talk] Starting with Solar 0.20

Stuardo -StR- Rodríguez str at strgt.cjb.net
Wed Jun 28 13:30:11 PDT 2006


On Wednesday 28 June 2006 15:18, Paul M Jones wrote:
> As a short-term fix, in Solar/Controller/Page.php, the _layoutInstance
> () method, at line 459, change from this ...
it was in my line  427..... is mine not updated?   v0.20?

>          // find the vendor-level templates (Vendor/App/Layout)
>          $template[] = dirname($this->_dir) . DIRECTORY_SEPARATOR .  
> 'Layout';
>
> ... to this:
>
>          // find the vendor-level templates (Vendor/App/Layout)
>          $vendor = dirname($this->_dir) . DIRECTORY_SEPARATOR .  
> 'Layout';
>          $template[] = $vendor;
>
>          // add the Solar templates as the final fallback
>          if ($vendor != 'Solar/App/Layout') {
>              $template[] = 'Solar/App/Layout';
>          }
Ok... solved the error.. but now I get this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
        "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
            </head>

    <body>
        <div id="top">
            <h1>Solar</h1>
                    </div>
    
        <table id="container" cellspacing="0">

            <tr>
                <td id="content">
                    TEXT_EXAMPLE                </td>
                <td id="right">
                    <br />
<b>Fatal error</b>:  Uncaught exception 'Solar_Exception'
class::code 'Solar::ERR_NOT_IN_REGISTRY' 
with message 'Object with name 'user' not in registry.' 
information array (
  'name' =&gt; 'user',
) 
Stack trace:
  #0 /usr/share/php/Solar.php(924): Solar::factory('Solar_Exception', Array)
  #1 /usr/share/php/Solar.php(505): 
Solar::exception('Solar', 'ERR_NOT_IN_REGI...', 'Object with nam...', Array)
  #2 /usr/share/php/Solar/App/Layout/_auth.php(18): Solar::registry('user')
  #3 /usr/share/php/Solar/App/Layout/twoColRight.php(43): 
include('/usr/share/php/...')
  #4 /usr/share/php/Solar/View.php(481): require('/usr/share/php/...')
  #5 /usr/share/php/Solar/Controller/Page.php(309): 
Solar_View-&gt;fetch('twoColRight.php')
  #6 /usr/share/php/Solar/Controller/Page.php(261): 
Solar_Controller_Page-&gt;_render()
  #7 /usr/share/php/Solar/Controller/Front.php(168): 
Solar_Controller_Page-&gt;fetch(Object(Solar_Uri_Action))
  #8 /usr/share/php/Solar/Controller/Front.php(183): 
Solar_Controller_Front-&gt;fetch(NULL)
  #9 /home/str/public_html/solar/ind in <b>/usr/share/php/Solar.php</b> on 
line <b>481</b><br />


> Clearly I need to work more on the SkeletonApp example.  Sorry for  
> the trouble, let me know what else you find.  Thanks for your  
> patience and feedback.
No problem... thanks for the quick answers



More information about the solar-talk mailing list