Muiti database in cakephp 1.3

2014-07-02 Thread tuan kim
hi there, I have a problem. I have 2 webiste with 2 database seperately, but they run on one server. I have one database to store user information, and one database store others information (news, product...). Now I want to use multi database so I can access user information form the other webs

Re: cake 2.5.2 installation ok, but not working

2014-07-02 Thread John Andersen
The error in the red-coloured image clearly states that you have an undefined index "User" - which probably means that your "users" table does not contain any rows. Please check and inform us of the result :) Enjoy, John On Tuesday, 1 July 2014 07:58:24 UTC+3, loucode wrote: > > >

Re: how to show barcode vartically

2014-07-02 Thread John Andersen
I looked at the TCPDF home page, documentation and examples. Seems like that is not possible. One way you may be able to do it, is by creating an image instead and then rotate it for your usage. Enjoy, John On Wednesday, 2 July 2014 15:52:19 UTC+3, sneha kulkarni wrote: > > hi > > i wants to sh

Re: Plus sign (+) in url parameter

2014-07-02 Thread euromark
Cake's ::url() does that for you if you use it properly mark Am Dienstag, 1. Juli 2014 17:49:24 UTC+2 schrieb David Montaño Ramírez: > > Hi > > I'm working in project that requires that a URL parameter containing a > plus sign (+) to be passed as an argument to the action. The problem is > tha

Re: Grouping Api controllers in a seperate sub directory

2014-07-02 Thread Hatem Ben Raïs
Thank you Jeremy, I'll give it a try the way it is explained in the article. But more generally, do you have any idea why this subdirectory structure is not working? I did exactly what is mentioned in the doc. On Wednesday, July 2, 2014 11:10:18 AM UTC+1, Jeremy Burns wrote: > > It’s simpler th

RE: Plus sign (+) in url parameter

2014-07-02 Thread Ricardo Vieitez
That’s exactly what’s supposed to happen. You should be escaping the plus sign (i.e., %2B). From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of David Montaño Ramírez Sent: 1. juli 2014 11:49 To: cake-php@googlegroups.com Subject: Plus sign (+) in url parameter Hi I'

Re: CakePHP with UserMgmt Plugin

2014-07-02 Thread Alessandro Pellegrini
I put the code here: https://gist.github.com/SirPilgrims Il giorno mercoledì 2 luglio 2014 13:13:23 UTC+2, Alessandro Pellegrini ha scritto: > > In CakePHP I have this configuration: > > //Config/routes.phpRouter::connect('/viewServices', array('plugin' => > 'usermgmt', 'controller' => 'services

how to show barcode vartically

2014-07-02 Thread sneha kulkarni
hi i wants to show barcode vartically but it show horizaotally in tcpdf please help if possible my code is $style = array( 'position' => '', 'align' => 'S', 'stretch' => false, 'fitwidth' => true, 'cellfitalign' => '', 'border' => false, 'hpadding' => 'auto', 'vpadding' => 'auto', 'fgcolor' =

CakePHP with UserMgmt Plugin

2014-07-02 Thread Alessandro Pellegrini
In CakePHP I have this configuration: //Config/routes.phpRouter::connect('/viewServices', array('plugin' => 'usermgmt', 'controller' => 'services', 'action' => 'viewServices')); //View/Users/dashboard.ctpHtml->link(__("Services",true),"/viewServices")?> //View/Services/view_services.ctp//I put

Uploading a picture file from mobile app to Cakephp

2014-07-02 Thread Sam
I would like have an Android mobile app snap pictures and then upload the pictures to a Cakephp web application. Is creating web services on Cakephp for the mobile app to call to upload the image file the right approach? Is it possible to have the mobile app do a HTTP Post to upload the file?

Re: Grouping Api controllers in a seperate sub directory

2014-07-02 Thread Jeremy Burns : Class Outfit
It's simpler than that. Each controller function can act as an API method, so leave the folder structure as it is.You can detect the json extension by using the RequestHandler component and adding Router::setExtensions(array('json')); near the bottom of routes.php. Then you can call /controller

Plus sign (+) in url parameter

2014-07-02 Thread David Montaño Ramírez
Hi I'm working in project that requires that a URL parameter containing a plus sign (+) to be passed as an argument to the action. The problem is that the + is replaced by a space. The question is: CakePHP is designed to work like that or might be a bug? Additional Information: CakePHP Versio

Re: How change a google places API to Helper

2014-07-02 Thread Lo Lo
> > i wanna add this > https://developers.google.com/maps/documentation/javascript/examples/place-search?hl=sv-SE to my cake php project. i have made a ctp file and add this line of code at the header Html->script('https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places', false); ?

Grouping Api controllers in a seperate sub directory

2014-07-02 Thread Hatem Ben Raïs
Hi, I have an app which requires some Api to expose its services. I am trying to group all the Api related controllers in a directory as explained in the doc here : http://book.cakephp.org/2.0/en/development/configuration.html So : 1- I created a /app/Controller/Api folder and moved the control

Localization: some string doesn't get translated

2014-07-02 Thread Lorenzo Milesi
Hi. I've a weird problem with my Cake (2.0.6) app, where some strings get translated and some don't. Source language is Eng, I added localization for Ita. This is the view file login.cpt: echo $this->Form->submit(__('Login')); echo $this->Html->link(__('Sign Up'), array('controller'=>'users','a

Re: Use 2 tables for update

2014-07-02 Thread CUCULEAC STEFAN
OK, since no one response to this post, and because in the meantime i figure out i will post the result. The problem was that i didn't respect conventions because i've use tables: users and users_details. Because of that i should use in UsersDetail Model *public $primaryKey = 'user_id'; *other