TypeError [ 0 ]: Argument 1 passed to Model_LinkToSouna::getLink() must be of the type string, null given, called in /home/banket.kz/www/banket.tk/application/classes/Controller/CategorySelect.php on line 31

APPPATH/classes/Model/LinkToSouna.php [ 18 ]

13 class Model_LinkToSouna extends Model
14 {
15     public $link = '';
16     public $title = '';
17     public $content = '';
18     public function getLink(string $city) {
19         $dbResponce = DB::select(
20                 'souna_links.link',
21                 'souna_links.title',
22                 'souna_links.content'
23                 )
  1. APPPATH/classes/Controller/CategorySelect.php [ 31 ] » Model_LinkToSouna->getLink(arguments)

  2. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_CategorySelect->action_index()

  3. {PHP internal call} » Kohana_Controller->execute()

  4. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

  5. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  6. SYSPATH/classes/Kohana/Request.php [ 993 ] » Kohana_Request_Client->execute(arguments)

  7. APPPATH/views/template.php [ 26 ] » Kohana_Request->execute()

  8. SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)

  9. SYSPATH/classes/Kohana/View.php [ 359 ] » Kohana_View::capture(arguments)

  10. SYSPATH/classes/Kohana/Controller/Template.php [ 44 ] » Kohana_View->render()

  11. SYSPATH/classes/Kohana/Controller.php [ 87 ] » Kohana_Controller_Template->after()

  12. {PHP internal call} » Kohana_Controller->execute()

  13. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

  14. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  15. SYSPATH/classes/Kohana/Request.php [ 993 ] » Kohana_Request_Client->execute(arguments)

  16. DOCROOT/index.php [ 119 ] » Kohana_Request->execute()

Environment