How to fix .htaccess in cakephp 2.0

2011-11-11 Thread Điển vũ
Recently , i saw in Google Webmaster a lot pages is NOT FOUND as:

http://example.com/webroot/index.php?url=authors/1781/http://gohentai.net/webroot/index.php?url=authors/1781/Yamasaki_Atsushi
test_test
http://example.com/webroot/posts/5978/test_test

I don't know as google crawl in pages but it can access in cakephp 1.3 . It 
seems cakephp 2.0 fixed this ?

How  can i redirect url : 
http://example.com/webroot/index.php?url=authors/1781/http://gohentai.net/webroot/index.php?url=authors/1781/Yamasaki_Atsushitest_test
 
   -  
http://example.comhttp://gohentai.net/webroot/index.php?url=authors/1781/Yamasaki_Atsushi
/authors/1781/http://gohentai.net/webroot/index.php?url=authors/1781/Yamasaki_Atsushi
test_test
http://example.com/webroot/posts/5978/test_test-
  http://example.com/posts/5978/test_test

-- 
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, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: How to fix .htaccess in cakephp 2.0

2011-11-11 Thread Điển vũ
CakePHP 2.0 changed in htaccess: 
*cakephphttps://github.com/cakephp/cakephp/tree/2.0
* / app https://github.com/cakephp/cakephp/tree/2.0/app / 
webroothttps://github.com/cakephp/cakephp/tree/2.0/app/webroot / 
.htaccess 
Line 5 from RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] to RewriteRule 
^(.*)$ index.php?/$1 [QSA,L]

-- 
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, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


FixComputerpProblemsSite Surely Knows How to Fix Computer Problems!

2011-06-11 Thread fix computer problems
 

I was having problems with my laptop before. Good thing *
FixComputerpProblemsSite* helped me fix it. And they are really the experts 
when it comes to solving any computer related issues. They can easily fix 
computer problems http://www.fixcomputerproblemssite.com/ without breaking 
a sweat. 

*FixComputerProblemsSite *expert computer technicians are very well trained 
to fix computer problems that we as computer users encounter in our PC.  They 
know how to properly diagnose the issues with computers and then give exact 
solutions for the said PC issues. They surely did know how to fix computer 
problems!

So if you need any help with your computer you can always count on 
*FixComputerProblemsSite 
*to fix computer problems that you can have with your PC.

To know more about *FixComputerProblemsSite *computer support services 
call*1-888-216-6589
* or log on to http://www.fixcomputerproblemssite.com

-- 
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, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


FixComputerpProblemsSite Surely Knows How to Fix Computer Problems!

2011-06-07 Thread Fixcomputerproblems Site
 

I was having problems with my laptop before. Good thing *
FixComputerpProblemsSite* helped me fix it. And they are really the experts 
when it comes to solving any computer related issues. They can easily fix 
computer problems http://www.fixcomputerproblemssite.com/ without breaking 
a sweat. 

*FixComputerProblemsSite *expert computer technicians are very well trained 
to fix computer problems that we as computer users encounter in our PC.  They 
know how to properly diagnose the issues with computers and then give exact 
solutions for the said PC issues. They surely did know how to fix computer 
problems!

So if you need any help with your computer you can always count on 
*FixComputerProblemsSite 
*to fix computer problems that you can have with your PC.

To know more about *FixComputerProblemsSite *computer support services 
call*1-888-216-6589
* or log on to http://www.fixcomputerproblemssite.com

-- 
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, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


FixComputerpProblemsSite Surely Knows How to Fix Computer Problems!

2011-06-03 Thread Fixcomputerproblems Site
 

I was having problems with my laptop before. Good thing *
FixComputerpProblemsSite* helped me fix it. And they are really the experts 
when it comes to solving any computer related issues. They can easily fix 
computer problems http://www.fixcomputerproblemssite.com/ without breaking 
a sweat. 

*FixComputerProblemsSite *expert computer technicians are very well trained 
to fix computer problems that we as computer users encounter in our PC.  They 
know how to properly diagnose the issues with computers and then give exact 
solutions for the said PC issues. They surely did know how to fix computer 
problems!

So if you need any help with your computer you can always count on 
*FixComputerProblemsSite 
*to fix computer problems that you can have with your PC.

To know more about *FixComputerProblemsSite *computer support services 
call*1-888-216-6589
* or log on to http://www.fixcomputerproblemssite.com

-- 
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, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


how to fix it

2011-05-05 Thread taq
?php
 //app::import('Model',array('Myprofile'));
Class MembersController extends AppController{
var $name = 'Members';   // 
var $helpers = array('Form');
var $components = array('Session');
var $uses = array('Member','Myprofile');
//var $scaffold;

   function register()
{
/// $Myprofile = new Myprofile();
if(!empty ($this-data)){
 $this-Member-create();
   //  $this-loadModel('Myprofile');
 $this-Myprofile-create();
 if($this-Member-save(($this-data['Member']['username']),($this-
data['Member']['password']))
 $this-Myprofile-save($this-data['Myprofile']
['name']))
  ($this-data['Myprofile']
['address']),
  ($this-data['Myprofile']
['phonenumber'])));
  {


 $this-Session-setFlash('success');
$this-redirect('index');


}
else

{

 $this-Session-setFlash('failed');
 }


I try to implement function that I bring someone But I can not call
myprofile model It took me three days to fix this problem. Then I
started discouraging.I just want to get the views of the seven
values​​ then divided. Members tables three , Myprofile tables four
values

-- 
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, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: how to fix it

2011-05-05 Thread dreamingmind
Your -save() parameters are wrong. You need to pass your data in as
an array.

You should just be able to say:
$this-Myprofile-save($this-data);
and
$this-Member-save($this-data);
Possibly you could even do -saveall() since your data array appears
to be constructed properly.

http://book.cakephp.org/view/1031/Saving-Your-Data#!/view/1031/Saving-Your-Data

Don


On May 5, 2:05 am, taq taqman...@gmail.com wrote:
 ?php
  //app::import('Model',array('Myprofile'));
 Class MembersController extends AppController{
     var $name = 'Members';   // 
     var $helpers = array('Form');
     var $components = array('Session');
     var $uses = array('Member','Myprofile');
     //var $scaffold;

    function register()
     {
         /// $Myprofile = new Myprofile();
         if(!empty ($this-data)){
          $this-Member-create();
    //  $this-loadModel('Myprofile');
      $this-Myprofile-create();
      
 if($this-Member-save(($this-data['Member']['username']),($this-data['Member']['password']))

              $this-Myprofile-save($this-data['Myprofile']
 ['name']))
                                       ($this-data['Myprofile']
 ['address']),
                                       ($this-data['Myprofile']
 ['phonenumber'])));
               {

          $this-Session-setFlash('success');
                     $this-redirect('index');

             }
             else

             {

              $this-Session-setFlash('failed');
              }

 I try to implement function that I bring someone But I can not call
 myprofile model It took me three days to fix this problem. Then I
 started discouraging.I just want to get the views of the seven
 values​​ then divided. Members tables three , Myprofile tables four
 values

-- 
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, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: how to fix it

2011-05-05 Thread dreamingmind
To be a little more clear about your problem, look at this small part
of your code:
$this-Member-save(
  ($this-data['Member']['username']),
  ($this-data['Member']['password'])
)
In this snippet you are passing two strings as parameters. Those array
elements you name each contain strings that came from the  form
$_Post. If this isn't clear, your going to have to read a little more
about php arrays to get a little clearer understanding.
http://us.php.net/manual/en/book.array.php

$this-data is a properly structured cakePHP data array. I assume
you've used the Form Helper (smart move). That pretty much insures
that you get back an array you can use in your saves with no other
processing.

Don

On May 5, 2:05 am, taq taqman...@gmail.com wrote:
 ?php
  //app::import('Model',array('Myprofile'));
 Class MembersController extends AppController{
     var $name = 'Members';   // 
     var $helpers = array('Form');
     var $components = array('Session');
     var $uses = array('Member','Myprofile');
     //var $scaffold;

    function register()
     {
         /// $Myprofile = new Myprofile();
         if(!empty ($this-data)){
          $this-Member-create();
    //  $this-loadModel('Myprofile');
      $this-Myprofile-create();
      
 if($this-Member-save(($this-data['Member']['username']),($this-data['Member']['password']))

              $this-Myprofile-save($this-data['Myprofile']
 ['name']))
                                       ($this-data['Myprofile']
 ['address']),
                                       ($this-data['Myprofile']
 ['phonenumber'])));
               {

          $this-Session-setFlash('success');
                     $this-redirect('index');

             }
             else

             {

              $this-Session-setFlash('failed');
              }

 I try to implement function that I bring someone But I can not call
 myprofile model It took me three days to fix this problem. Then I
 started discouraging.I just want to get the views of the seven
 values​​ then divided. Members tables three , Myprofile tables four
 values

-- 
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, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


how to fix it

2011-04-21 Thread taq
i have error
 Error: Database table posts for model Post was not found.
i have  follow exaple in the book but repetitive error

-- 
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, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: how to fix it

2011-04-21 Thread Tilen Majerle
so, table posts in your database doesn't exists :)
--
Lep pozdrav, Tilen Majerle
http://majerle.eu



2011/4/21 taq taqman...@gmail.com

 i have error
  Error: Database table posts for model Post was not found.
 i have  follow exaple in the book but repetitive error

 --
 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, send email to
 cake-php+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php


-- 
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, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Quick Tip: How to fix missing table errors.

2008-10-16 Thread [EMAIL PROTECTED]

I have, from time to time, had immense problems running tests on
models. I keep getting errors about tables being missing on seemingly
any random table, including ones in the core tests.

I believe I have found out how these errors occur. They happen when
you have tried to run a test with a syntax error or similar fatal
problem in the source. For me this is quite common since I cane easily
forget a ; or two. Since the whole test-run died half way through, I
now have some tables still in my test database but some where never
created before the script died.

The quick fix = Clear the test database of all tables. (works for me
every time)

I guess that Cake checks the database and if it contains tables it is
more careful and does not want to disturb your schema. This is a good
thing if you happen to run a test on your main database. Cake won't
wipe away aan important table by misstake.

/Martin
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How to fix error on line 162 when trying update or delete warning in dbo_mssql.php

2007-08-26 Thread Apulis

I repeat for myself, maybe somebody will need. In that file after
count write smth. like count_ in two places and works fine.
If you dopn't wanna warnings, set 0.

On Aug 21, 4:19 pm, Apulis [EMAIL PROTECTED] wrote:
 I can connect tosqlserver, I even can create new records, but
 browser displaying some errors and all with line 162 in dbo_mssql.php.
 I can't delete modify data. Maybe anybody had the sameproblem?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---