Re: Database Connection MS SQL 2012 With CakePHP 2.X

2013-01-03 Thread Lloyd Johnson
i have found this 
http://about-opensource.blogspot.com/2012/06/cake-php-231-with-sql-server-2005-or.html
 i 
am going to try it out tomorrow 

On Thursday, January 3, 2013 4:11:40 PM UTC-7, Lloyd Johnson wrote:
>
> me too i am looking to do this in cakephp 2.0 myself.
>
> On Wednesday, January 2, 2013 7:27:55 PM UTC-7, Mohamad Zulhelmi Redzwan 
> wrote:
>>
>> I try to make connection with my local ms sql db with this settings 
>> public $default = array(
>> 'datasource' => 'Database/Sqlserver',
>> 'persistent' => false,
>> 'host' => 'localhost\SQLEXPRESS',
>> 'login' => 'sa',
>> 'password' => '123456',
>> 'database' => 'ktmb',
>> 'prefix' => '',
>> //'encoding' => 'utf8',
>> );
>>
>> but it show error "Cake is NOT able to connect to the database.
>>
>> Database connection "Sqlserver" is missing, or could not be created."
>>
>> who can help me... 
>>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Database Connection MS SQL 2012 With CakePHP 2.X

2013-01-03 Thread Lloyd Johnson
me too i am looking to do this in cakephp 2.0 myself.

On Wednesday, January 2, 2013 7:27:55 PM UTC-7, Mohamad Zulhelmi Redzwan 
wrote:
>
> I try to make connection with my local ms sql db with this settings 
> public $default = array(
> 'datasource' => 'Database/Sqlserver',
> 'persistent' => false,
> 'host' => 'localhost\SQLEXPRESS',
> 'login' => 'sa',
> 'password' => '123456',
> 'database' => 'ktmb',
> 'prefix' => '',
> //'encoding' => 'utf8',
> );
>
> but it show error "Cake is NOT able to connect to the database.
>
> Database connection "Sqlserver" is missing, or could not be created."
>
> who can help me... 
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Cake Search

2012-08-24 Thread Lloyd Johnson
I need to be able to search almost all fields in my database, i have looked 
up and tried a few tutorials but none work, they all have various errors or 
are for cake 1.3 and dont work.

does any1 have any ideas?

it has to be on the newest version of cake

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: weird behavior in CakePHP 1.2 (possible bug)

2008-01-28 Thread Lloyd

Hey guys, I have been stumped at this for days with something similar
- I had to upload my entire cakephp app to a remote server because my
local one was just crashing and I couldn't work out any errors
whatsoever well I'll explain my situation and see how it goes with
responses..

I am in my Customers Controller and am using a findAll() query to
search for any possible 'Clubs'.  THis works fine and sets in my
'edit' view.. however, when I go to submit the information through a
form, it crashes.. if I get rid of displaying this array in the view,
everything works fine - its only as soon as i try and utilise this
'Club' call array in the view that it crashes.. this was my error
message...

Fatal error: Out of memory (allocated 37486592) (tried to allocate
40961 bytes) in path/to/my/site/cake/libs/debugger.php on line 421

I commented out the same thing and got this result...

Notice (8): Undefined variable: myClubNames [APP\views\customers
\edit.ctp, line 101]

So.. there's my error... a definate bug I think and not just me
missing something.. what do you guys reckon?  I'll post if i can get
my app working without too many troubles.. cheers!!
Lloyd

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Same Model&Controller but different Views for 2 different domains

2007-12-16 Thread Lloyd

Thanks heaps - I will try that!!

Lloyd

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Passing parameters to index page without calling index action

2007-12-16 Thread Lloyd

Hey everyone, I've been using cake for a little bit now but something
has got me stumped!

My controller:

function index($id) {  }
function somethingElse($id){ }
function somethingElseTwo($id) {  }

So basically, If i want to pass the $id to the 'somethingElse' and
'somethingElseTwo' functions I just go to the url:

domain.com/controller/somethingElse/id<-- (id would be say 2 or
something)

But if i go www.domain.com/controller/id   and try and access the
index page through this, it passes the id to the controller and thinks
it's an action and not the parameter as intended to be.  if i go,
www.domain.com/controller/index/id , then that works, but obviously
that isn't ideal for me!!

I have messed around with routes and even tried this - but that
doesn't work with ajax for some reason (maybe because its kindof
cheating) - it does work with general links though

$Route->connect('/controller/somethingElse', array('controller' =>
'Controller', 'action' => 'somethingElse'));
$Route->connect('/controller/somethingElseTwo', array('controller' =>
'Controller', 'action' => 'somethingElseTwo'));
$Route->connect('/controller/somethingElseThree', array('controller'
=> 'Controller', 'action' => 'somethingElseThree'));
// anything else ie - a link pointing towards controller/id
$Route->connect('/controller/*', array('controller' => 'Controller',
'action' => 'index'));

Is there a way to do this properly?  I'm not very good with regex
either

P.s.  the real reason for wanting to simplify url's as much as
possible is really an seo thing

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Same Model&Controller but different Views for 2 different domains

2007-12-15 Thread Lloyd

I'm just wondering, is there a simple or even feasible way of having
different views for 2 different domains - but the same model and
controller?  Ie, both websites so to speak will be exactly the same in
content but just differ in appearance.. maybe I could do this in
routes.. I'm not sure.. any help would be awesome, thanks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Sanitize & html helper double converting htmlentities

2007-07-12 Thread Lloyd

This seems to be a real problem with me as well.

I sanitize my array:

$mrClean = new Sanitize();
$mrClean->cleanArray($this->data);

It saves the phrase --> i'm here  as i'm here into my database
which is fine.

But then when I use my helper to show a form->input() it returns:

i'm here (that is the value printed through my web browser, not in
the source code)..

"escape"=>false doesn't work for me either - anyway, just my 2 cents

cents


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---