Thanks Hector helping me out. To summarize the progress, I have upgraded the FZ with 1.10.3. Created a file named registerController.php in "\application\modules\jobposter\controllers\registerController.php" and wrote the following code

<?php
    class Jobposter_registerController extends Zend_Controller_Action
    {
        public function init()
        {



        }
        public function indexAction()
        {


        }

    }

Now the link [sitepath]/public/jobposter/register/ showing me the error "application error" from the error controller "\application\controllers\ErrorController.php" line 21. Do i have to make any changes in bootstrap? If yes then in modules bootstrap or application bootstarp?

On 7/7/2010 11:34 AM, Hector Virgen wrote:
I'd go with the newer version. If ZF is already in your PHP include path, make sure that your application isn't adding another copy of it to the include path.

As for your other question, you might want to read up on how ZF implements the MVC pattern.

You should also look into using the url view helper instead of constructing your urls manually with string concatenation. It might make things a little clearer once you start putting the pieces together.

http://framework.zend.com/manual/en/zend.view.helpers.html

--
Hector


On Tue, Jul 6, 2010 at 10:45 PM, sathyashrayan <[email protected] <mailto:[email protected]>> wrote:

    On 7/6/2010 10:04 PM, Hector Virgen wrote:
    It appears that your application is not using the same version of
    the Zend Framework as the one that created the project. Normally,
    that class constant would be defined.

    To check your ZF version, do a var_dump of Zend_Version::VERSION.

    print_r(Zend_Version::VERSION) gives me 1.9.6
    command line "zf show version" gives me 1.10.3

    is that a version conflict. ?



    Also, your URLs should not link to .phtml files directly.
    Normally, view scripts are hidden completely from Apache. If
    you're using the default routes of ZF, your URLs will look more
    like /controller/action.

    I suggest going through the QuickStart if you haven't already. It
    should help give you a better idea of how a ZF application works.

    http://framework.zend.com/manual/en/learning.quickstart.intro.html

    --
    Hector

    Thanks for your reply. Yes i know that I should not be asking too
    much in a forum. But all i need is the proper terms to make a self
    study. I have attached the code here and i am sure that I am
    missing something very basic.

    In the attached code [sitepath]/public/jobposter/ will open a
    form. But i want it like a menu (look at the bottom) so that if i
    click it will open an new page for registration form.




    On Tue, Jul 6, 2010 at 6:57 AM, sathyashrayan
    <[email protected] <mailto:[email protected]>> wrote:


        I am getting an error as following..

        *Fatal error*: Undefined class constant 'EXCEPTION_NO_ROUTE'
        in
        
*C:\xampp\htdocs\works\office\my_tools\myhammer\application\controllers\ErrorController.php*
        on line *11

        *


        -------- Original Message --------
        Subject:        Module's sub-directory link (beginner Level question)
        Date:   Tue, 06 Jul 2010 14:11:37 +0530
        From:   sathyashrayan <[email protected]>
        <mailto:[email protected]>
        To:     [email protected]
        <mailto:[email protected]>



          Dear group,
           I have created 2 modules named jobposter and jobprovider. so when i
        give the url [sitepath]/public/ and [sitepath]/public/jobposter it goes
        to the proper index.phtml page of that module.
           In the module's index.phtml page I have created a link

        <a href="<?php echo
        $this->baseUrl;?>/jobposter/register/register.phtml">
        ($this->view->baseUrl = $this->_request->getBaseUrl(); from init() of
        controller)

           But it does not redirect to the specified page for registration.
        Please suggest the topics for making this work in zend framework
        terminology. If i want a header/ fotter where the page is constant
        through out the site what are the options available?  Do i have to read
        zend_view or zend layout?  Please advice.





Reply via email to