How to use zend-form-decorators-bootstrap? - php

I'm trying to integrate my ZF2 project Forms with Twitter Bootstrap 3.0.2. In order to achieve this, I downloaded Emagister's zend-form-decorators. So, what now? How can I use the sources? I can't find where should I copy Twitter folder (It's not a module) and how to render forms. My project is based on ZF2 skeleton project.

Related

Using vuejs with userfrosting framework

I'm using vuejs to create a complex website that will have user registration and login. I want to implement userfrosting framweork to manage users registration/login workflow but I'm not sure how to implement in in my existing vue project. I've read the documentation and I've successfully installed all the needed dependencies and I'm able to see the final directory. The problem is that it will rely on a custom index.php file and I already have my vue template to use. At the moment I've created the userfrosting folder inside the src folder of my vue project. How I can make the two things working togheter?

How to add Zend REST API to an existing Concrete5 site?

I was tasked with developing a REST API using zend framework 2 for a web site created with concrete5 cms. I am very new php and have no idea where to start.
Specifically, my question is about installation and routing. How can I install zend framework on my existing concrete5 project. After that, what should I do to route REST requests to Zend controllers.
Thanks
Have a look at Apigility. This is a Zend solution for the use case you suggest (publishing existing code as an API).
https://apigility.org

How to add Yii in Zend

I have a big project in Zend and a small one in Yii.
Now I want to integrate Yii project in Zend project.
Is it possible or no ? And if it's possible are there any links, from where I can read and integrate my project. I've searched in google, but didn't find anything useful.
You should be able to do both: Include 3rd party libraries into Yii and use Yii in other projects. Please have a look at the official guide:
http://www.yiiframework.com/doc/guide/1.1/en/extension.integration
The main steps to integrate Yii e.g. in Zend are:
require_once('path/to/yii.php');
Yii::createWebApplication('path/to/config.php');

How to integrate KCFinder inside zend application as standalone

I want to integrate KCFinder inside Zend framework, i want this
http://kcfinder.sunhater.com/demo/kcfinder/browse.php?type=files&dir=files/public
page to be included inside my template without using any iframe, i had tried many things by calling browser.php file inside my view but i am facing issues with file loading and their dependencies, even resolving php file dependency by using autoloader js files are not loading properly
Please help me out on this
I had collaborated with project like CKfinder called Elrte.org
and i did make a custom ZF form element for it
a sample example on my github account :
https://github.com/tawfekov/Elrte-Element-for-Zend-Framework
the demo has ability to show the rich text editor + file manager
feel free to extend it or to get an example of it

How should I extend the Zend Framework as a folder organisation point of view?

I am currently integrating the Zend Framework in my current project named VMM.
I decided to put the Zend Framework directory as a standalone project next to my VMM project in Eclipse.
I need to do some customization of the zend framework (For example I need to add Irradiance.php into Measure) and I would like to know where is the best place to put all my customizations.
I know that I need to follow the Zend Framework naming convention and the same directory structure.
So for example Irradiance.php contain the Mylib_Measure_Irradiance class.
I was thinking to put the Mylib folder into ZendFramework/library/Mylib next to the Zend folder.
Is it the regular way to extend and customize the Zend Framework?
If not, should I put the customizations inside my VMM project or as an other standalone project?
Thanks!
UPDATE
This question helped me but I still need some help...
I tend not to put my own library style files into the ZF folder mainly because when you come to upgrade ZF you'll have to copy them all over to the new ZF.
On my localhost I have something like this
my-project is the project I am working on and contains all the models, views, controllers,etc for that project
/htdocs/my-project/application
/htdocs/my-project/public
library is my own library files and mimics the ZF structure
/htdocs/library/Db/
/htdocs/library/Validate/
I then have my current ZF in /usr/lib/php/ZendFramework-x.xx.x this folder contains the latest ZF and can be changed easily without changing my projects or library code base.
Edit:
David's comments about 'pointers' reminded me, I always set up a sym link in /usr/lib/php/ called ZendLatest, this points to the latest copy of ZF, this means I don't have to keep changing my code or my php.ini.
There are many ressources out there:
http://www.slideshare.net/PHPBelgium/extending-zend-framework-presentation
http://cslai.coolsilon.com/2009/03/28/extending-zend-framework/

Categories