CakePHP 2.0 and Form Wizard

2011-12-19 Thread Clint Finnigan
Has anyone managed to get this Form Wizard: https://github.com/jaredhoyt/cakephp-wizard/ which is for CakePHP v1.3 to work for v2.0? I've made a few changes in an attempt to get it to work, but being a CakePHP newbie, I'm not quite sure what I'm doing is correct and have gotten stuck! :)

Re: Using encryption to verify parameters

2011-12-19 Thread euromark
@douglas: it destroys the whole concept of urls - to know where you currently are. bookmarking, history etc - everything doesnt work anymore. well, if you really want all that for an app - fine but I am not convinced that cloaking urls adds any security. the params of urls shoudnt be what you

Re: CakeDC: Should we group categories plugin with tags plugin ?

2011-12-19 Thread burzum
No, categories != tags and they don't share the same features like for example nested sets. It does not make any sense to force both into one plugin just to clone some bad habit of Wordpress. If you need a taxanomie plugin that works like wordpress you can hire the CakeDC to do it or create it

Re: CakeDC: Should we group categories plugin with tags plugin ?

2011-12-19 Thread Điển vũ
@AD7six: I want referer to CakeDC. Sorry, if i used mistake words . -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from

Re: Cakephp 2.0.4 Stable - Scaffold Problem

2011-12-19 Thread gloop
Same issue with Cakephp 2.0.3. On 19 Dez., 08:35, gloop gl...@web.de wrote: Sorry i tested something, but the problem is still excisting with public $scraffold; Blank page. Kind Regards On 19 Dez., 01:45, Thiago Belem cont...@thiagobelem.net wrote: Based on

Re: CakePHP 2.0 and Form Wizard

2011-12-19 Thread euromark
did you try to upgrade it using an upgrade shell? this should update to 2.0 format/style and might make it work out of the box then On 19 Dez., 07:33, Clint Finnigan ctf...@student.monash.edu wrote: Has anyone managed to get this Form Wizard:https://github.com/jaredhoyt/cakephp-wizard/which

Re: TextHelper-Truncate Fails!

2011-12-19 Thread Carlos Romeu Esteve
Yes the problems remains in inline styles, but my problem is that I need this styles because they are being created automatically. And I don't want to set exact = true, because I want to see complete the last word. I don't understand what you mean: Are you doing an email newsletter? Thanks for

Re: TextHelper-Truncate Fails!

2011-12-19 Thread euromark
if you think this is a bug, you can open a ticket for it: http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets ideally with some patch and/or test case attached personally, I think it is difficult to truncate a html text correctly in all situations. but maybe there is an easy solution

Re: TextHelper-Truncate Fails!

2011-12-19 Thread Carlos Romeu Esteve
Thank you! I couldn't found the place to report bugs If any it's interested there is the ticket http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/2397-texthelper-truncate-failing -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the

Re: Cakephp 2.0.4 Stable - Scaffold Problem

2011-12-19 Thread Thiago Belem
Your project is on github? -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt* Assando Sites*, curso de CakePHP *»* assando-sites.com.br

Re: CakePHP and Sqlite

2011-12-19 Thread NaeiKinDus
Hi there, Sorry for the thread hijacking / bump, but a little more information on this topic could help some people. Is there anything else to do/ check to get it working ? In my case, CakePHP cannot connect to the database, even though I have the PDO installed and configured to work with SQLite

Cakephp 2.0.4 - Scaffold add form issue

2011-12-19 Thread Daniel Brandi
Dear all, I have a problem in cakephp 2.0.4 when use scaffold forms. The situation is the following: I have two models, one (User) belongs to second one (Country). When go to view scaffold form of User, I can see the country info with a link to view that county. But when I go to add scaffold

Problemas con la linea de codigo exec('psexec -d

2011-12-19 Thread angelo.ortiz
Buenos días; Estoy desarrollando un programa que lee datos desde un fichero para después subirlos a la base de datos. El problema es cuando dichos ficheros son muy grandes, puesto que el usuario se debe quedar mucho tiempo esperando a que se procese toda la información, entonces pensé en lanzar

Re: Multi-level Authorization?

2011-12-19 Thread Wendall
Hi and thanks again for the help. I've got it figured out, does anyone see any potential problems with this approach? public function login() { if ($this - request - is('post')) { $user = $this - User - findByPasscode($this - request - data[User][passcode]); // READ THE USER FROM DB

ACL can you explain me this ?

2011-12-19 Thread flashnet
Hi all, I have follow the Cookbook on Acl and Auth and i don't unterstand what that lines means : ?php // Basic setup $this-Auth-authorize = array('Controller'); or // Pass settings in $this-Auth-authorize = array( 'Actions' = array('actionPath' = 'controllers/'),

Re: Lightbox form CakePHP 2.0

2011-12-19 Thread Florin Trifu
Thank you Stefanski That's one of the things I don't know how to do it, but it's not the only one. I honestly don't know where to start, I have the code from the example Geoff gave me but I'm starring at it not knowing what to do with it. But probably Geoff is right and I need to see the

Re: Cakephp 2.0.4 Stable - Scaffold Problem

2011-12-19 Thread AD7six
On Dec 19, 11:46 am, gloop gl...@web.de wrote: Same issue with Cakephp 2.0.3. Does anything in your application work? How are you checking if it works or not? AD -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

Re: CakePHP and Sqlite

2011-12-19 Thread Matteo Landi
On 12/19, NaeiKinDus wrote: Hi there, Sorry for the thread hijacking / bump, but a little more information on this topic could help some people. Is there anything else to do/ check to get it working ? In my case, CakePHP cannot connect to the database, even though I have the PDO installed

Re: Cakephp 2.0.4 Stable - Scaffold Problem

2011-12-19 Thread gloop
Hello, i try the last hour with a new generated project. And it works ... so now i found the Problem: in my AppController i wrote this: ?php class AppController extends Controller { var $components = array('Acl', 'Auth' = array(

Re: Cakephp 2.0.4 - Scaffold add form issue

2011-12-19 Thread Thiago Belem
1. The relation is defined on the models 2. You have defined the displayField of country? 3. Both models exist (file)? Regrads, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web

Re: Cakephp 2.0.4 - Scaffold add form issue

2011-12-19 Thread euromark
to refine thiago's 2. question: what is the displayField of the country model? if it is not title or name, you need to set displayField manually for bake and for scaffold forms On 19 Dez., 16:50, Thiago Belem cont...@thiagobelem.net wrote:    1. The relation is defined on the models    2. You

virtualfields + description cache

2011-12-19 Thread Janos Csikos
Hi All, I have a problem with the description caching in datasource (CakePHP 1.3.12). Or maybe with my solution. My problem: I need to count a value based on other fields in the same table. My solution: I used the virtual fields for this. So let MySQL to work rather than count it in PHP. It is

Re: any oAuth Provider implementations for Cake or PHP

2011-12-19 Thread ecsyle
This is most likely what you are looking for http://code.42dh.com/oauth/ On Dec 18, 5:16 pm, Shukuboy shuku...@gmail.com wrote: Hi everyone, I need to integrate an oAuth Provider in my website, which allows my mobile apps (and other third party applications) to use the services of the

HTTPS and HTTP on same app

2011-12-19 Thread Mario
Hi all, I have just added to a fully working site based on CakePHP 2.0 and Apache 2.2.16 a wildcard SSL certificate. Created virtual hosts pointing HTTPS to the same HTTP app. But when I load the HTTPS version, the certificate is ok but lots of errors: first thing [Mon Dec 19 16:34:57 2011]

Re: Using encryption to verify parameters

2011-12-19 Thread mark_story
Geoff, I work at FreshBooks. You'll have to trust me when I say encoding your querystrings is a horrible idea. We only still have it because of legacy issues, and the fact that we have had them for years. I would strongly suggest you don't go down the very painful road of doing this. -Mark

Baking on a Mac for Newbies

2011-12-19 Thread Timothy O'Reilly
Hi, I had a lot of difficulty in getting my .profile set correctly (to start Baking) and thought I'd share this Blog Post which saved me (after 2 days of pulling my hair out). It's how to edit your .profile without using Vim.

Re: Cakephp 2.0.4 Stable - Scaffold Problem

2011-12-19 Thread gloop
Now i delete the file and add it new with the same code and now i get the correct redirect to the user login form ... On 19 Dez., 16:44, gloop gl...@web.de wrote: Hello, i try the last hour with a new generated project. And it works ... so now i found the Problem: in my AppController i

Trivial layout / css problem: text wider than background

2011-12-19 Thread Daniel
I have a body (text) field which is displayed in a view. The problem with the default layout is that the text is wider than the coloured background of the alternate row (I can mail you a picture if you like). The class is as follows: dd class=altrow .. which is within a dl tag. I would like the

Re: Using encryption to verify parameters

2011-12-19 Thread somebody who carez
jsonencode the params then base64encode them then encrypt them, pass this encryption hash along with the original plaintext variables, when you recieve these variable bank check the plaintext variables against the encryption hash I do the same on some of my projects to prevent tampering of data

Re: Alternative for dropdown with large dataset

2011-12-19 Thread willeja
Sounds nice too! Maybe I can go for both!! Thanks On 15 dec, 23:06, Geoff Douglas drdouglas...@gmail.com wrote: +1 I have used the autocomplete method lots of times... works great! The other convention would be to have a Create Invoice from the customer index. Then you can apply some

Re: Trivial layout / css problem: text wider than background

2011-12-19 Thread Daniel
I found out what to change. I set the width to maximum on line 209 of cake.generic.css: /** Scaffold View **/ dl { line-height: 2em; margin: 0em 0em; width: 100%; } -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new

Re: HTTPS and HTTP on same app

2011-12-19 Thread Mario
Just solved, as suggested by some nice guys on #cakephp on irc.freenode.net, it was a matter of setting the DocumentRoot as indicated in http://book.cakephp.org/2.0/en/installation.html#production, that is at /cake_install/app/webroot. On Dec 19, 7:11 pm, Mario mario.calli...@gmail.com wrote: Hi

Re: CakePHP 2.0 and Form Wizard

2011-12-19 Thread Clint
I wasn't aware of an upgrade shell. I looked into it and received the following error: Running tests Error: Plugin Wizard could not be found. Not sure what's up with it as it detected the app and lib paths correctly and Wizard is definitely in app/plugin. As well as being loaded in

Re: Multi-level Authorization?

2011-12-19 Thread José Lorenzo
$this- Auth- login($this - request - data) should be just $this- Auth- login() If you pass any data to login() that is what it will be stored in the session, whereas if you call it with no parameters, the it will copy the database data to the session. -- Our newest site for the community:

Re: CakePHP 2.0 and Form Wizard

2011-12-19 Thread Sam Sherlock
with cakes defualt upgrade shell I have been able to cd to the plugin and then run upgrade (for me I run the subcommands one at a time as I have a plugin that won't be found and it will fail at helpers -- I suspect that this won't be the case for you but if you have issues run them 1by1) with

Re: any oAuth Provider implementations for Cake or PHP

2011-12-19 Thread Shukuboy
Thanks Ecsyle, This seems to be an oAuth Consumer component for CakePHP. What I'm after is an oAuth provider (or oAuth server). An example of what I'm after is provided by : http://code.google.com/p/oauth-php/wiki/ServerHowTo but I've read in a couple of other posts that this library is quite

i18n extract in plugins cakephp 2.0

2011-12-19 Thread Cayetano Soriano
Hi i used the console, for extract .po, from plugin, the problem, is that I create a directory in my app/Plugins/plugin name/ called Locale, and copy my .po, but it doesn't work, in app/Locale , it works perfectly, how i can put that in my plugin/plugin-name directory Thank's a lot -- Our

Re: Wich command use in cakePHP 2.X similar to Dispatcher::baseUrl()?

2011-12-19 Thread Lucas Simon Rodrigues Magalhaes
Thks @José Lorenzo It works. And i tested also ?php $this-here ? On 18 dez, 22:04, Lucas Simon Rodrigues Magalhaes lucass...@gmail.com wrote: i don't find in cake book http://stackoverflow.com/questions/8555607/wich-command-use-in-cakeph... -- Our newest site for the community: CakePHP Video

best use of var $uses in a controller

2011-12-19 Thread roundrightfarm
Is there ever a time when it is considered best practices to use var $uses for access to a model from a controller. The cakephp manual seems to say to use $this-Model-AssociatedModel when there is an association and $this-loadModel('UnassociatedModel') when there isn't. Does var $uses not appear

Re: best use of var $uses in a controller

2011-12-19 Thread euromark
I use var $uses for the primary model of the controller e.g. Posts = uses Post Contact = uses Tools.Contact (Plugin model) MembersController = uses User Account = uses User etc I also think this is the normal use case for this property and would never put more than one model into it. The main

Re: best use of var $uses in a controller

2011-12-19 Thread Miles J
What euromark said. If the model is the primary usage within the controller, I use the $uses and any associations off of the user. If I really need an external model, I would use loadModel(). For example in a users controller, only user would be in $uses. On Dec 19, 4:31 pm, euromark

foreach looping problem

2011-12-19 Thread GG
I have 3 tables Posts Followers Users My Posts table has an id, title, body, created, user_id, category_id 1 | New Title | Some text here | 12/19/11 | 101 | 10 2 | Nwr Title | Something here | 12/19/11 | 105 | 15 3 | Agn Title | Body Text here | 12/19/11 | 110 | 20 My Followers table has a

Re: i18n extract in plugins cakephp 2.0

2011-12-19 Thread Miles J
app/Plugin/plugin/Locale/eng/LC_MESSAGES/name.po On Dec 19, 10:20 am, Cayetano Soriano neoshadyb...@gmail.com wrote: Hi i used  the console, for extract .po, from plugin, the problem, is that I create a directory in my app/Plugins/plugin name/ called Locale, and copy my .po, but it doesn't

Question about routing

2011-12-19 Thread jmail
Hi! I am preparing some application with expanded rights system. And I have a problem with routing - I would like to know if it's possible to make something like this Router::connect('/admin/:controller/:action', array('controller' = 'adm'.:controller)); I need to add this adm or mod or usr to

Re: Need help with model design

2011-12-19 Thread Geoff Douglas
http://book.cakephp.org/view/1323/Containable#Containing-deeper-associations-1325 Have you followed the steps in the above documentation? In model add the behavior, using the actsAs property. Then before you do your find, list the Relationships you want to contain...

Re: save() not working

2011-12-19 Thread Geoff Douglas
Ok, so I see a few odd things going on here. First, you say it's a cron job, but you are using a controller? Shouldn't you be using a Shell? Second, set() is not a global function, it should be $this-set(). It's a method of the Controller class. What fields does the table require... have you

Re: Using encryption to verify parameters

2011-12-19 Thread Geoff Douglas
I love Freshbooks! Is it a cool place to work? I trust you sir. Point understood. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To

Re: Using encryption to verify parameters

2011-12-19 Thread Geoff Douglas
I can understand your point. You can never be secure without a good ACL system in place. But that doesn't mean you can't have both at some level. I think I just like to keep the options open for interesting ideas. I don't know if I would ever encrypt the entire application, but perhaps just

Re: Using encryption to verify parameters

2011-12-19 Thread Geoff Douglas
I like it. This could be very useful at various levels. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group,

Re: Multi-level Authorization?

2011-12-19 Thread Geoff Douglas
Yes, this should get you want you need, but to Jose's point, you may want to make sure you are unsetting any sensitive data from the User array before to do the login... Generally all you need is an id, name, and maybe group_id. -- Our newest site for the community: CakePHP Video Tutorials

Re: best use of var $uses in a controller

2011-12-19 Thread Geoff Douglas
Just to add to the conversation... You have to ask yourself, when do I need this model? If you are going to need it in every web request, then stick it in the $uses property. If you only going to use it in one method, then register it on the fly. That way, your not bogging down every other

Re: Question about routing

2011-12-19 Thread Geoff Douglas
Is there a reason you aren't using the prefix_routing functionality? http://book.cakephp.org/view/950/Prefix-Routing (1.3) http://book.cakephp.org/2.0/en/development/routing.html#prefix-routing (2.0) -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check