php - Codeigniter if uri_to_assoc parameters not set how to find that -


inside the codeigniter controller I have to find out whether the values ​​are set correctly if somebody displays a proper error message Do not want. So please let me know how to find out. Please see the examples below,

When the price is set correctly,

  www.example.com/features/    > 

You must check each value starting with the second segment.

In Administrator:

  Public Function _checkUriSegments () {$ Params = $ this- & gt; Yuri- & gt; Uri_to_assoc (2); Var_dump ($ parameter); Foreign currency ($ par value = $ gt; = $ value as $ $ $) {if (! $ Params [$ key]) {return false; True} true; } Edit Public Function () {if (! $ This-> _checkUriSegments ()) {Echo 'wrong url!'; break; } // make some edits}    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -