Steam Gamer / Teamspeak Community - Cake2

2016-04-09 Thread Stephen Speakman
Hi Apologies if this is against group rules, I'm not sure it is. I run a gaming community and I set the site up in CakePHP 2, I am busy with work so I'd love to reach out to any gamer devs who'd like to check it out and possibly get involved to help us grow. No links provided at this point just

Re: Add class to active links

2012-02-29 Thread Stephen Speakman
In the options array add 'class' => 'myclass' Echo $this->Html->link('my link', array('controller' => 'users', 'action' => 'index'), array('class' => 'mylink')); If my memory serves me correctly that is Sent from my iPhone On 29 Feb 2012, at 07:48, Kiran Ambati wrote: Hi I am using cakp

Re: MVC design for shopping cart

2012-02-29 Thread Stephen Speakman
Write re-usable query methods in the appropriate models. If you're dealing with product id's then use the products controller and any tax calculations etc can be handled in a model or if need be component. Im not sure why you would need a 'cart controller' if you don't have cart records.

Re: Multisite (like WPMU + domain mapping)... possible?

2012-02-26 Thread Stephen Speakman
Im working on a setup at the moment which does what you need by using http_host in the global web root but its done inefficently. It merges full apps together.. Im using 'nuts and bolts' method of running multiple apps from one cake folder. I have then developed a plugin which is shared bet

Re: Error: Index.phpController could not be found

2012-02-23 Thread Stephen Speakman
Quick summary (Do read the docs!) www.site.com/ - cake/libs/controllers/pages_controller.php OR CREATE - app/controllers/pages_controller.php - PagesController::display() www.site.com/users/ - app/controllers/users_controller.php - UsersController::index() www.site.com/users/login - app/c

Re: Media Plugin of David Persson is for cake 1.3 and for cake 2.0?

2012-02-22 Thread Stephen Speakman
It may be an idea to make changes to the media plugin for 2.x and share it if lisences arent an issue. I'm still on 1.3 for now but it would be nice to contribute. Sent from my iPhone On 22 Feb 2012, at 17:01, byqsri wrote: Hi I would open a discussion between all developers that use cake

Re: Custom model association column

2012-02-22 Thread Stephen Speakman
Something i need to bear in mind when mapping my models, no joining between two connections. Could you not find a behaviour to create a temporary table as a very last resort? Sent from my iPhone On 21 Feb 2012, at 21:37, jeremyharris wrote: Does Containable not work? $this->HospitalAdm

Re: The Great Web Framework Shootout

2012-02-22 Thread Stephen Speakman
It's good to hear somebody who views CakePHP in the same practical light as myself. I can develop more efficient applications in a much faster timescale than expected of me in my new job, if my first appraisal is a good one.. A toast to cake and donation to cakephp :) Sent from my iPhone O

useDbConfig strange bug

2012-02-21 Thread Stephen Speakman
Hi everyone Im developing an inhouse plugin to be shared by many apps. This plugin has an app model which states that it should use a separate database config which was working initially. The problem occured when I set up a "hasMany - belongsTo" relationship between universe_client.php an

Re: Need Help: A variable is losing value

2012-02-11 Thread Stephen Speakman
It's possible your $_SESSION['nId'] is actually overwriting the parameter being passed to the controller with 0? Assuming you're accessing the method like such: /networks/add_network/ If you want to avoid creating a new record try: $this->Network->id = $nId; $this->Network->save($this->data);

Re: How to send a fax

2012-02-06 Thread Stephen Speakman
If you don't sign up for a service I don't think you can send a fax using anything. I'd suggest using an API or service, aql.com have a great fax service (I only know of incoming) but I'm sure they do outgoing as well - it's usually linked to email. Kind Regards Stephen On 06/02/2012 16:29

Re: Using Join Tables in Cakephp - result in view.ctp

2012-02-05 Thread Stephen Speakman
Hi I may not know the answer to your question but shouldn't your model be named: sport_group.php and SportGroup extends AppModel ? port_groups_entity table should be named "port_group_entities" PortGroupEntities I would personally correct all the filenames, class names and $this->Mode

Re:

2012-02-05 Thread Stephen Speakman
Hi Manouchehr You should be able to use a HasMany / BelongsTo relationship. Courses belongsTo CoursePrerequisites CoursePrerequisites HasMany Courses This way you can have say 15 Course Prerequisites and 10 courses, some courses can share some of the same prerequisites. On 05/02/2012 14:25,