Jump to content

Adding meta tags under Zend FW


Perfidus

Recommended Posts

Hello there, recently has come to my hands the FTP of a website which is running under Zend, I would like to add some meta to the website but the index file is just a bunch of classes and includes so I'm a little lost about where to find the correct file to add the meta tags...

Can anybody point me in the right direction?

 

Thanks a lot.

Link to comment
Share on other sites

Does the application use the new Zend_Application object to bootstrap the application? If so, you might locate a view boostrap resource and meta data there via the headmeta helper.

 

Otherwise, it might be a little more difficult to track down. Probably the simplest solution (for someone that doesn't know Zend that well) would be to simply add the meta tags to your layout.n Somewhere within the project should (may) be a directory called layout, this generally holds the layout pages that are used by all other views.

Link to comment
Share on other sites

it is quite daunting but the structure is quite simple, you have your url

 

blah.com/{maybe module}/controller/method

 

and you see the view for that method, the controller is under controllers maybe inside its module directory and the method is inside it, but yes you can add it to the layout depending on wich layout is being used.

 

find the controller find the method in that controller and dont worry about it,

 

just go to views/controller name/method name.phtml

 

check what layout is being used

 

go to layouts/layout name

 

and then you can add meta content there statically or dynamically

 

odds are your entire site uses one layout or maybe 2, they will all be under layouts directory

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.