Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Updated Resource Page and February Meeting Planning
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Chris Tankersley  
View profile  
 More options Jan 23 2012, 10:19 am
From: Chris Tankersley <ch...@ctankersley.com>
Date: Mon, 23 Jan 2012 10:19:01 -0500
Local: Mon, Jan 23 2012 10:19 am
Subject: Updated Resource Page and February Meeting Planning
I've updated the resource page for January's ZCE talk and the slides
from the Intro to Zend Framework. I also posted a link to the book Roger
recommends to read through to get your MySQL Certification. This can all
be found at http://www.nwo-pug.org/resources .

For February, I won't be able to make it due to a prior conflict, so for
February anyone who wants to present anything just e-mail me. The
meeting should take place on Feb 21st.

--
Chris


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bud Manz  
View profile  
 More options Jan 23 2012, 5:18 pm
From: Bud Manz <manz....@gmail.com>
Date: Mon, 23 Jan 2012 17:18:56 -0500
Local: Mon, Jan 23 2012 5:18 pm
Subject: Re: [nwo-pug] Updated Resource Page and February Meeting Planning
I can possibly do a presentation on writing a component for Joomla
1.7.  If there is any interest in that.

Bud

Sent from my iPhone

On Jan 23, 2012, at 10:19 AM, Chris Tankersley <ch...@ctankersley.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Zend_View_Exception" by Thomas Powers
Thomas Powers  
View profile  
 More options Feb 21 2012, 2:37 pm
From: Thomas Powers <Thomas.Pow...@heartland-ins.com>
Date: Tue, 21 Feb 2012 19:37:17 +0000
Local: Tues, Feb 21 2012 2:37 pm
Subject: [nwo-pug] Zend_View_Exception
Wondered if anyone here could help out. I've setup a new Zend Framework skeleton for the new design of our company website. In the PHP script, I create a new view.

[code]
        $view = new Zend_View();
        $view->setScriptPath(APPLICATION_PATH . "/views/scripts/menu");

        /* skip some stuff */

        $view->render('nameofscript.php');
[/code]

I get Zend_View_Exception with message: "script "nameofscript.php" not found in path (/path/to/script/views/scripts/menu/). However, the script is located in the folder specified (on the server side--yes I checked). Anybody have a clue how to resolve this?

Thanks,

THOMAS POWERS | SENIOR WEB DEVELOPER |
GERMAN MUTUAL INSURANCE
Work: (419) 599-3993 Ext: 252 | Mobile: (419) 591-6064 |
Email: thomas.pow...@heartland-ins.com | Website: http://www.heartland-ins.com
Tuesdays & Fridays: (419) 966-4079

Ron Paul - VOTE FOR FREEDOM!

"True patriotism is more closely linked to dissent than it is to conformity and a blind desire for safety and security." - Congressman Ron Paul (TX)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Powers  
View profile  
 More options Feb 21 2012, 2:39 pm
From: Thomas Powers <Thomas.Pow...@heartland-ins.com>
Date: Tue, 21 Feb 2012 19:39:43 +0000
Local: Tues, Feb 21 2012 2:39 pm
Subject: RE: [nwo-pug] Zend_View_Exception
LOL. I just needed to send the email I guess. As soon as I sent it, I realized what the problem was. The path included the module path as well, but I wasn't putting that in the "setScriptPath" statement.

Thanks,

THOMAS POWERS | SENIOR WEB DEVELOPER |
GERMAN MUTUAL INSURANCE
Work: (419) 599-3993 Ext: 252 | Mobile: (419) 591-6064 |
Email: thomas.pow...@heartland-ins.com | Website: http://www.heartland-ins.com
Tuesdays & Fridays: (419) 966-4079

"True patriotism is more closely linked to dissent than it is to conformity and a blind desire for safety and security." - Congressman Ron Paul (TX)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Tankersley  
View profile  
 More options Feb 21 2012, 2:40 pm
From: Chris Tankersley <ch...@ctankersley.com>
Date: Tue, 21 Feb 2012 14:40:21 -0500
Local: Tues, Feb 21 2012 2:40 pm
Subject: Re: [nwo-pug] Zend_View_Exception
Try leaving off the .php part of the render() call, and rename the file
to 'nameofscript.phtml' and see if that works. I think Zend_View does
some magic to find the templates including building the name of the file
itself.

-Chris

On 2/21/2012 2:37 PM, Thomas Powers wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Zend_View_Exception (modules)" by Thomas Powers
Thomas Powers  
View profile  
 More options Feb 22 2012, 12:18 pm
From: Thomas Powers <Thomas.Pow...@heartland-ins.com>
Date: Wed, 22 Feb 2012 17:18:55 +0000
Local: Wed, Feb 22 2012 12:18 pm
Subject: [nwo-pug] Zend_View_Exception (modules)
Okay. Now I am having an issue with modules. I cannot get the app to "see" my module. First off, I feel quite comfortable with ZF, but when it comes to modules, I get wrapped up in confusion. I'll try to explain the best that I can.

Portion of Config File (below)

resources.frontController.moduleDirectory       = APPLICATION_PATH "/modules"
resources.modules[]                             = ""

---------------End File-------------

Portion of Bootstrap File (below)

protected function _initAutoloadModules()
{
        $moduleLoader = new Zend_Application_Module_Autoloader(
                        array (
                                'namespace' => '',
                                'basePath'      => APPLICATION_PATH
                        ),
                        array (
                                'namespace' => 'docs',
                                'basePath'      => APPLICATION_PATH . '/modules/docs'
                        )
      );

      return $moduleLoader;

}

protected function _initFCPlugins()
{
        Zend_Layout::starMvc();
      $this->bootstrap('frontController');
      $this->bootstrap('RegisterNamespaces');

        $fc = $this->getResource('frontController');        
        $fc->registerPlugin(new Tws_Controller_Plugin_ModuleLayout());
        $fc->registerPlugin(new Gmic_Plugin_Module());

      return $fc;

}

class Gmic_Plugin_Module extends Zend_Controller_Plugin_Abstract
{
        public function preDispatch(Zend_Controller_Request_Abstract $request)
        {
                $module         = $request->getModuleName();
                $layout         = Zend_Layout::getMvcInstance();

                $layoutsDir = $layout->getLayoutPath();

                if (file_exists($layoutsDir . DIRECTORY_SEPARATOR . $module . ".phtml")) {
                        $layout->setLayout($module . "-layout");
                } else {
                        $layout->setLayout('layout');
                }
        }

}

---------------End File--------------

I'm trying to access APP_PATH . "/agent/docs/index". There are two modules, I have the default and then docs (at this point). As you can see from the parameters list at the bottom, the module is docs, the controller is index, yet it doesn't "exist".

<***** ERROR THAT I GET ******>

An error occurred
Page not found
Exception information:

Message: Action "index" does not exist and was not trapped in __call()
Stack trace:

#0 /var/www/projects/powerst/shared-library/Zend/Controller/Action.php(515): Zend_Controller_Action->__call('indexAction', Array)
#1 /var/www/projects/powerst/shared-library/Zend/Controller/Dispatcher/Standar d.php(289): Zend_Controller_Action->dispatch('indexAction')
#2 /var/www/projects/powerst/shared-library/Zend/Controller/Front.php(946): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Reques t_Http), Object(Zend_Controller_Response_Http))
#3 /var/www/projects/powerst/shared-library/Zend/Application/Bootstrap/Bootstr ap.php(77): Zend_Controller_Front->dispatch()
#4 /var/www/projects/powerst/shared-library/Zend/Application.php(346): Zend_Application_Bootstrap_Bootstrap->run()
#5 /var/www/projects/powerst/agent/public/index.php(35): Zend_Application->run()
#6 {main}

Request Parameters:

array(3) {
  ["module"]=>
  string(4) "docs"
  ["controller"]=>
  string(5) "index"
  ["action"]=>
  string(5) "index"

}

------------- END ERROR ------------

I have a bootstrap for the docs module, as well. The IndexController for Docs is Docs_IndexController. Anyone know what I'm missing here?

THOMAS POWERS | SENIOR WEB DEVELOPER |
GERMAN MUTUAL INSURANCE
Work: (419) 599-3993 Ext: 252 | Mobile: (419) 591-6064 |
Email: thomas.pow...@heartland-ins.com | Website: http://www.heartland-ins.com
Tuesdays & Fridays: (419) 966-4079

"True patriotism is more closely linked to dissent than it is to conformity and a blind desire for safety and security." - Congressman Ron Paul (TX)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Tankersley  
View profile  
 More options Feb 29 2012, 4:26 pm
From: Chris Tankersley <ch...@ctankersley.com>
Date: Wed, 29 Feb 2012 16:26:33 -0500
Local: Wed, Feb 29 2012 4:26 pm
Subject: Re: [nwo-pug] Zend_View_Exception (modules)

Hey, I built some of that!

On Wed, Feb 22, 2012 at 12:18 PM, Thomas Powers <

Thomas.Pow...@heartland-ins.com> wrote:
> Okay. Now I am having an issue with modules. I cannot get the app to "see"
> my module. First off, I feel quite comfortable with ZF, but when it comes
> to modules, I get wrapped up in confusion. I'll try to explain the best
> that I can.

> Portion of Config File (below)

> resources.frontController.moduleDirectory       = APPLICATION_PATH
> "/modules"
> resources.modules[]                             = ""

> ---------------End File-------------

This is correct. All your modules should reside in folders inside
APPLICATION_PATH/modules, so a new module called mynewmodule would be in
APPLICATION_PATH/modules/mynewmodules.

The second line tells it to load all the modules in the directory.

You shouldn't need to do this. This is taken care of by the individual
bootstrap for each module.

Gmic_Plugin_Module seems to be doing the same thing as what
Tws_Controller_Plugin_ModuleLayout() is intended to do, which is flip the
layout file based on the module name. So you could probably get rid of it.

It all sounds correct. Your directory layout should look like this:

/path/to/application/
    application/
        configs/
        controllers/
        forms/
        layouts/
        models/
        modules/
            docs/
                controllers/
                forms/
                ....
        views/

Make sure that you have a bootstrap class in
application/modules/docs/Bootstrap.php that looks like this one:
https://github.com/dragonmantank/manuscript/blob/master/application/m...
(replace
Accelerators_Boostrap with Docs_Bootstrap). That should cause ZF to see
your module controllers.

My guess is all that is correct, and if it is I think you're just missing
the indexAction() method in Docs_IndexController. So it would look like
this:

class Docs_IndexController extends Zend_Controller_Action
{
    public function indexAction() {
        // Logic for this page
    }

}

> THOMAS POWERS | SENIOR WEB DEVELOPER |
> GERMAN MUTUAL INSURANCE
> Work: (419) 599-3993 Ext: 252 | Mobile: (419) 591-6064 |
> Email: thomas.pow...@heartland-ins.com | Website:
> http://www.heartland-ins.com
> Tuesdays & Fridays: (419) 966-4079

> "True patriotism is more closely linked to dissent than it is to
> conformity and a blind desire for safety and security." - Congressman Ron
> Paul (TX)

--
Chris Tankersley
http://ctankersley.com
419.785.6408

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »