Re: $title_for_layout and what changes I need to do

2012-07-23 Thread Sam Sherlock
You using 2.x right? Don't worry about the yet as its 3.0 specific. - S On 15 Jul 2012 11:23, Nvp leh...@gmail.com wrote: Hi! It's my first Cake project I have about 5-6 static pages they are served by the default PagesController. I have title ?php echo $title_for_layout ? /title in my

Re: Cakephp with barcode

2012-07-23 Thread Борислав Събев
This is right. Nowadays almost all (except special-purpose ones) emulate a gerenic keyboard device. I have personally coded a barcode generation application in CakePHP, but the reader part was handled by some Air applications. Nevertheless barcode readers do just throw the string that they've

I am not getting the paypal_ipn plugin implementation going on. The initial setup for each and every detail is required can anyone guide or redirect to link.

2012-07-23 Thread Roshan
The initial setup for each and every detail is required such as putting the plugin folder to setting the particular parameters in different files. Can anyone guide or redirect to link. I have tried http://www.micahcarrick.com/paypal-ipn-with-php.html link also but it does not tell all the

Re: Cake PHP User Management Plugin Eagle

2012-07-23 Thread Albert 'Tigr'
On Sunday, 22 July 2012 13:17:43 UTC+2, Steve wrote: This Eagle Plugin was made for a user who is facing problem with Login/Registration and other issues. It has 56 features. Please don't concentrate on design, everything is code. Ok, where is the code then? Albert -- Our newest

Re: User management and authentication plugin for CakePHP 2

2012-07-23 Thread Albert 'Tigr'
Yes, that is precisely what I already do. The question is whether the automagic selection of the language-specific views is available and the answer, as far as I can see, is no. On Sunday, 22 July 2012 11:08:29 UTC+2, Piotr Beschel wrote: So try to check prefered language for user

Re: How to pass id through a form to another controller and view form

2012-07-23 Thread Guti Grewal
Hi, Thanks this works almost perfectly apart from it is not echoing out the value in the hidden field :S it just leaves it blank, any idea why? On Sunday, 22 July 2012 19:20:30 UTC+1, cricket wrote: On Sun, Jul 22, 2012 at 8:19 AM, Guti Grewal gutigre...@gmail.com wrote: What I want

Problem with multiple testAction calls with mocked Auth component - 2.2.1

2012-07-23 Thread Dave M.
After upgrading to 2.2.1 from 2.0.x some of my controller tests are failing. It seems as if a mocked Auth component does not survive multiple testAction calls. Am I doing something wrong here or is this expected? CandidatesControllerTest.php public function testExportAdmin() { $Candidates =

Re: Ingherited models that filter active users/records?

2012-07-23 Thread geste
Thanks to you and Mike and Jeremy for responses. Not only do I have confirmation that I was headed in the right direction, model-wise, with some examples, but you have prodded me to expand my use of MySQL constructs. To date I haven't used a VIEW, but it would seem that one big advantage

Test Case and login

2012-07-23 Thread Juan Ezquerro LLanes
Hi, I write a test case for a controller but i need a user logged to do the test, i try something like: public function testIndex() { // TEST USER NORMAL $this-Auth-login( array( 'user' = 'aa',

Connecting to a ReSTful API (Google apps) instead of a database.

2012-07-23 Thread Andrew Lechowicz
Hello all and thanks for reading my topic. First let me say that I've very new to CakePHP and MVC in general so please bare with me. I have actually read The Book and found it to be a great starting point, and the main reason I chose Cake over other PHP MVC frameworks. I'm working on a

Re: Connecting to a ReSTful API (Google apps) instead of a database.

2012-07-23 Thread Andrew Lechowicz
Not that it matters but the path where I put the google library actually reads app/Vendor/GoogleAPI/ -- 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

What security issues do I have to worry about when it comes to CakePHP?

2012-07-23 Thread Shahruk Khan
I know CakePHP does a lot of stuff for you, but if I setup a CakePHP installation and create a CRUD app, is that it, or do I have to do anything else to make sure the platform is secure? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new

Re: Connecting to a ReSTful API (Google apps) instead of a database.

2012-07-23 Thread Andrew Lechowicz
Also, I found this on StackOverflowhttp://stackoverflow.com/questions/8741501/cakephp-oauth-with-google. But I'm not sure how I would use it. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org

Conceptual questions regarding HABTM relationships!

2012-07-23 Thread Ralf Rottmann
I've been working with CakePHP (2.x) for quite a while and I'm loving it. However, I found some very important aspects covered too briefly in the documentation. When googling around and asking in other forums, I got mixed responses, increasing my feeling of uncertainty even more. I'd like to

Saving more than one related object in a HABTM scenario

2012-07-23 Thread Ralf Rottmann
Code also available here: http://pastie.org/4308149 My models User and Group share a hasAndBelongsToMany relationship. The following code create the new user, creates the new group and inserts the correct entry into the groups_users join table. This tells me, the relationship is configured

Re: What security issues do I have to worry about when it comes to CakePHP?

2012-07-23 Thread euromark
using the security component is an absolute requirement for beginners. especially due to missing whitelisting in default templates. besides that you pretty much only need to make sure you don't output unescaped output - using h($var) that should take care of most of the basic problems Am

Using test database

2012-07-23 Thread Juan Ezquerro LLanes
If i write a test case i want use the test database config without fixtures, i insert the data manually, i just want to say to my test case 'just use that db with the data and tables already contains'. how can i do that? fixtures do not work with my datasource, i'm using cassandra. -- Our

Get Data about Current Page

2012-07-23 Thread Andrew Johnston
How would I get data for a current view? For example, if I had the page: http://example.com/view/2 and I wanted to link to: http://example.com/view/3 How would I do that? I don't use Paginator. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out

saving HABTM data in a fixture - have to resort to Model::query() to get it done

2012-07-23 Thread lsiden
I created a component test that modifies and saves a model with HABTM associated data. Before I upgraded to CakePHP 2.0, I tried to accomplish this with unbindModel() all over my code, but wanted to try something a little cleaner albeit less efficient. I spent hours reading

Re: Problem with multiple testAction calls with mocked Auth component - 2.2.1

2012-07-23 Thread Dave M.
I've discovered this doesn't happen when i am logged in to the app itself. I am quite confused. On Monday, July 23, 2012 10:58:34 AM UTC-4, Dave M. wrote: After upgrading to 2.2.1 from 2.0.x some of my controller tests are failing. It seems as if a mocked Auth component does not survive

Re: Test Case and login

2012-07-23 Thread Dr. Tarique Sani
use something like $this-Controllername-Session-write() and write whatever your login is writing to session. Remember you are Unit testing your controller not your login :-) HTH Tarique On Mon, Jul 23, 2012 at 9:39 PM, Juan Ezquerro LLanes arr...@gmail.com wrote: Hi, I write a test case for

Re: Problem with multiple testAction calls with mocked Auth component - 2.2.1

2012-07-23 Thread Dr. Tarique Sani
Thumbrule - one testAction per test HTH Tarique On Tue, Jul 24, 2012 at 6:14 AM, Dave M. mil...@gmail.com wrote: I've discovered this doesn't happen when i am logged in to the app itself. I am quite confused. On Monday, July 23, 2012 10:58:34 AM UTC-4, Dave M. wrote: After upgrading to

Re: Cake PHP User Management Plugin Eagle

2012-07-23 Thread gavrielh
The site links do not work - can't login as admin to test the site... Looks cool, but little time to test without working. On Monday, July 23, 2012 3:30:04 AM UTC-7, Albert 'Tigr' wrote: On Sunday, 22 July 2012 13:17:43 UTC+2, Steve wrote: This Eagle Plugin was made for a user who is